//https://zhuanlan.zhihu.com/p/88592868
import React from 'react';
import classnames from 'classnames';
import './SuperIcon.scss'

const scriptElem = document.createElement('script');
scriptElem.src = '//at.alicdn.com/t/font_2334565_lsd0n33wjwk.js';
document.body.appendChild(scriptElem);

interface IProps {
  className?:string,
  type: string,
  
}

const SuperIcon :React.FC<IProps> =({ className, type, ...restProps })=> {
  return (
    <svg
      className={classnames('super-icon', className)}
      aria-hidden="true"
      {...restProps}
    >
      <use xlinkHref={`#${type}`} />
    </svg>
  );
}


export default SuperIcon;
